From: Stefan Monnier Date: Wed, 14 Apr 2010 15:24:17 +0000 (-0400) Subject: (non-essential): New var. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~8145 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=884ba99fdd312dffec6903a4e11fe1537559a046;p=emacs.git (non-essential): New var. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 10a46203bf4..97d9cea1cba 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2010-04-14 Stefan Monnier + * simple.el (non-essential): New var. + Add a new field `location' to bookmarks for non-file bookmarks. * bookmark.el (bookmark-location): Use the new field, if present. (bookmark-insert-location): Undo last change, not needed any more. diff --git a/lisp/simple.el b/lisp/simple.el index 34e31b10276..d071c76e2b1 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3940,6 +3940,14 @@ the current accessible part of the buffer. If `widen-automatically' is nil, these commands will do something else as a fallback, and won't change the buffer bounds.") +(defvar non-essential nil + "Whether the currently executing code is performing an essential task. +This variable should be non-nil only when running code which should not +disturb the user. E.g. it can be used to prevent Tramp from prompting the +user for a password when we are simply scanning a set of files in the +background or displaying possible completions before the user even asked +for it.") + (defun pop-global-mark () "Pop off global mark ring and jump to the top location." (interactive)